package com.cargohu.aishouyu.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改参数配置表参数
 *
 * @author yww
 * @since 2023-11-29
 */
@Data
@Schema(description = "修改参数配置表参数")
public class SysConfigUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "参数主键")
    @NotNull(message = "参数主键不能为空")
    private Long configId;

    @Schema(description = "参数名称")
    @Length(max = 100, message = "参数名称长度超过限制")
    private String configName;

    @Schema(description = "参数键名")
    @Length(max = 100, message = "参数键名长度超过限制")
    private String configKey;

    @Schema(description = "参数键值")
    @Length(max = 500, message = "参数键值长度超过限制")
    private String configValue;

    @Schema(description = "系统内置（Y是 N否）")
    @Length(max = 1, message = "系统内置（Y是 N否）长度超过限制")
    private String configType;

    @Schema(description = "备注")
    @Length(max = 500, message = "备注")
    private String remark;

}


